package com.xm.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author : litieelo
 * @version : 1.0
 * @project : orange
 * @description : 历史搜索记录
 * @date : 2020-06-22 12:03
 */
public class SearchHistory {
    //属性
    private Integer id;
    //搜索商品的所属类型
    private Integer searchType;
    //搜索关键字
    private String searchKey;
    //搜索次数
    private Integer count;
    //如果已经登录，记录是哪个用户搜索
    private Integer userId;
    //该关键字搜索时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSearchType() {
        return searchType;
    }

    public void setSearchType(Integer searchType) {
        this.searchType = searchType;
    }

    public String getSearchKey() {
        return searchKey;
    }

    public void setSearchKey(String searchKey) {
        this.searchKey = searchKey;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
